package com.ss.android.article.browser.view;

import android.app.Dialog;
import android.webkit.GeolocationPermissions;
import com.ss.android.common.app.permission.PermissionsResultAction;
import com.ss.android.common.dialog.AlertDialog;
import com.ss.android.common.dialog.AlertDialog.Builder;

final class h extends PermissionsResultAction {

    public final BrowserWebChromeClient c;
    public final String a;
    public final GeolocationPermissions.Callback b;

    h(BrowserWebChromeClient arg1, String arg2, GeolocationPermissions.Callback arg3) {
        this.c = arg1;
        this.a = arg2;
        this.b = arg3;

    }

    public final void onGranted() {
        int v4 = 50;
        Builder v1 = new Builder(BrowserWebChromeClient.getActivity(this.c));
        v1.setTitle(BrowserWebChromeClient.getActivity(this.c).getString(com.ss.android.article.browser.R.string.allow_website_read_location));
        String v0 = this.a.length() > v4 ? this.a.subSequence(0, v4) + "..." : this.a;
        v1.setMessage(v0 + BrowserWebChromeClient.getActivity(this.c).getString(com.ss.android.article.browser.R.string.q8)).setCancelable(true).setPositiveButton(BrowserWebChromeClient.getActivity(this.c).getString(com.ss.android.article.browser.R.string.bb), new j(this)).setNegativeButton(BrowserWebChromeClient.getActivity(this.c).getString(com.ss.android.article.browser.R.string.bo), new i(this));
        AlertDialog v0_1 = v1.create();
        v0_1.show();
        android.support.design.a.resizeDialog(BrowserWebChromeClient.getActivity(this.c), ((Dialog)v0_1));
    }

    public final void onDenied(String arg1) {
    }
}

